export function setTableHeight(elementClassName) {
  console.log('触发当前表格函数');
  const pageHeight = document.documentElement.scrollHeight;
  const element = document.querySelector(elementClassName);
  if (!element) {
    console.error(`Element with class name ${elementClassName} not found.`);
    return;
  }
  const elementOffsetTop = element.offsetTop;
  console.log('表格盒子到顶部距离', elementOffsetTop);
  const elementHeight = pageHeight - elementOffsetTop - 10;
  element.style.height = `${elementHeight}px`;
  console.log('设置的表格盒子高度', element.style.height);
}